cmake_minimum_required(VERSION 3.28)
project(CallableThread)

set(CMAKE_CXX_STANDARD 20)

# 将 callableThread.cpp 编译成一个库
add_library(CallableThreadLib CallableThread.cpp)

add_executable(MainServer MainServer.cpp)
target_link_libraries(MainServer CallableThreadLib)